import {IPageResponse} from "@/common/common";
import request from "@/common/request";

export interface IEvent {
  id: number
  anaEventId: string
  taskId: string;
  taskName: string;
  eventTime: string;
  plateNumber: string
  cameraName: string
}

export interface IEventReq {
  page?: number;
  size?: number;
}

export async function apiQueryEvents(params: Partial<IEventReq>): Promise<IPageResponse<IEvent[]>> {
  // const params = convertParams(para);
  return request({url: "/v1/app/eventAlarm", params});
}
